/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package unc.pds.service;

import unc.pds.model.UserRemote;

/**
 *
 * @author Михаил
 */
public class UserHolder {
    private static ThreadLocal currentUser = new ThreadLocal();
    public static UserRemote getCurrentUser() {
        return (UserRemote)currentUser.get();
    }
    public static void setCurrentUser(UserRemote newCurrentUser) {
        currentUser.set(newCurrentUser);
    }
}
